<?php include("header.php"); ?>
<?php if(isset(Yii::app()->session['user_id']) && Yii::app()->session['user_id']) { ?>
<div id="content-admin">
        <div id="left-admin">
            <?php include("left_menu.php"); ?>
        </div>
    <div id="right-admin">
        <?php echo $content; ?>           
    </div>
</div>
<?php } else { ?>
    <?php echo $content; ?>
<?php } ?>
<?php include("footer.php"); ?>